const children = [
  {
    name: 'OrderIndex',
    path: 'index',
    component: () => import('@/views/order/index.vue'),
    meta: {
      menu: false, // 是否显示底部菜单
      auth: true, // 是否需要验证登录
      navBar: true, // 是否显示头部导航栏
      navBarTitle: '订单列表', // 头部导航栏标题
    }
  },
  {
    name: 'OrderExpress',
    path: 'express',
    component: () => import('@/views/order/express.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '物流信息',
    }
  },
  {
    name: 'OrderReturn',
    path: 'return',
    component: () => import('@/views/order/return.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: ' 填写退货信息',
    }
  },
  {
    name: 'OrderDetail',
    path: 'detail',
    component: () => import('@/views/order/detail.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '订单详情',
    }
  },
  {
    name: 'OrderComment',
    path: 'comment',
    component: () => import('@/views/order/comment.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '订单评价',
    }
  },
]

export default {
  name: 'Order',
  path: '/order',
  component: {
    template: `<router-view></router-view>`
  },
  children,
  redirect: '/order/index'
}